<?php

namespace app\model;

use app\model\Wxmini;

class Qrcode
{

    function getUserQrcode($user_id, $page)
    {
        $scene = $user_id;
        return Wxmini::getQrcode($scene, $page);
    }
    function getGoodsQrcode($goodsid, $user_id, $page)
    {
        $scene = "{$goodsid},{$user_id}";
        return Wxmini::getQrcode($scene, $page);
    }
    function getStoreQrcode($sid, $user_id, $page)
    {
        $scene = "{$sid},{$user_id}";
        return Wxmini::getQrcode($scene, $page);
    }
    function getOrderQrcode($orderid, $page)
    {
        $scene = $orderid;
        return Wxmini::getQrcode($scene, $page);
    }
}
